/*
 * Last review by   : Yaser
 * Last review date : JUL-25-09 
 */
using System;
using System.Data;

namespace ERP.Framework.Components.LoggingHelper.ErrorLog
{
    /// <summary>
    /// Interface for error log classes
    /// </summary>
    public interface IErrorLog
    {
        #region Properties

        /// <summary>
        /// Gets the type.
        /// </summary>
        /// <value>The type.</value>
        ErrorLogType Type { get; }

        #endregion

        #region Methods

        /// <summary>
        /// Adds the specified error.
        /// </summary>
        /// <param name="error">The error.</param>
        void Add(Exception error);


        /// <summary>
        /// Reads this instance.
        /// </summary>
        /// <returns></returns>
        DataTable Read();

        #endregion
    }

}
